//
//  ToolsCell.m
//  LOL_JewelBox
//
//  Created by dllo on 15/4/21.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ToolsCell.h"
#define WIDTH self.smallView.frame.size.width
#define HEIGHT self.smallView.frame.size.height

@implementation ToolsCell

- (void)dealloc
{
    [_smallView  release];
    [_name release];
    [_icon release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.smallView = [[UIView alloc] init];
        [self.contentView addSubview:self.smallView];
        [_smallView release];
        
        self.name = [[UILabel alloc] init];
        [self.smallView addSubview:self.name];
        [_name release];
        self.name.font = [UIFont systemFontOfSize:30];
        
        self.icon = [[UIImageView alloc] init];
        [self.smallView addSubview:self.icon];
        [_icon release];
        
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.name.frame = CGRectMake(CONTENTHEIGHT + 20 , 0, CONTENTWIDTH, CONTENTHEIGHT);
    
    self.icon.frame = CGRectMake(0, 0, CONTENTHEIGHT , CONTENTHEIGHT);
    
    
}






@end
